﻿/*
* ============================================================================
* GNU Lesser General Public License
* ============================================================================
*
* BYDAN - Free Java BYDAN library.
* Copyright (C) 2008 
* 
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* 
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
* 
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
* 
* BYDAN Corporation
*/
package ByDan.AulaVirtual.Presentation.Reporte.Source;

import java.util.ArrayList;
import ByDan.Framework.AulaVirtual.Business.Entities.GeneralEntity;
import ByDan.Framework.AulaVirtual.Business.Entities.Mensajes;
import ByDan.Framework.AulaVirtual.Utils.ParameterDbType;
import ByDan.Framework.AulaVirtual.Utils.ParameterType;
import ByDan.Framework.AulaVirtual.Utils.ParametersMaintenance;
import ByDan.Framework.AulaVirtual.Utils.ParameterMaintenance;
import ByDan.Framework.AulaVirtual.Utils.ParameterValue;
import ByDan.Framework.AulaVirtual.Utils.ParametersType;
import ByDan.AulaVirtual.Business.Entities.*;
import ByDan.AulaVirtual.Business.Logic.CursoLogic;
import ByDan.AulaVirtual.Business.Logic.CursoLogicAdditional;
import ByDan.Framework.AulaVirtual.Utils.DeepLoadType;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import java.sql.*;

public class CursoBean extends Curso
{
	
	
	
	
	
	
	
	
	String field_bigIdRegulacionDescripcionReporte;
	
	
	
	String field_bitEstadoDescripcionReporte;
	
	
	
	
	
	
				
	public CursoBean  ()
    {
 		field_bigIdRegulacionDescripcionReporte="";
 		
 		
 		
 		field_bitEstadoDescripcionReporte="";
 		
 		
 		
 		
 		
 		
    } 
	
	     
    
	public String getField_bigIdRegulacionDescripcionReporte()
	{
		return field_bigIdRegulacionDescripcionReporte;
	}
    
    
    
    
	public String getField_bitEstadoDescripcionReporte()
	{
		return field_bitEstadoDescripcionReporte;
	}
    
    
    
    
    
    
	
    
	public void setField_bigIdRegulacionDescripcionReporte(String newField_bigIdRegulacionDescripcionReporte)throws Exception
	{
		try
		{
			this.field_bigIdRegulacionDescripcionReporte=newField_bigIdRegulacionDescripcionReporte;
		}
		catch(Exception ex)
		{
			throw ex;
		}
	}
    
    
    
    
	public void setField_bitEstadoDescripcionReporte(String newField_bitEstadoDescripcionReporte)
	{
		this.field_bitEstadoDescripcionReporte=newField_bitEstadoDescripcionReporte;
	}
    
    
    
    
    
    
		
	public static ArrayList<CursoBean> TraerCursoBeans(ArrayList<Curso> cursos)throws Exception
    {
		ArrayList<CursoBean> cursobeans=new ArrayList<CursoBean>();	
		CursoBean cursobean;
				
		try
		{
			for(Curso curso:cursos)
			{
			
				cursobean=new CursoBean();
				
				cursobean.setId(curso.getId());	
				cursobean.setVersionRow(curso.getVersionRow());	
				cursobean.setField_bigIdRegulacion(curso.getField_bigIdRegulacion());
				cursobean.setField_bigIdRegulacionDescripcionReporte(CursoLogicAdditional.getRelationship_RegulacionDescripcion(curso.getRelationship_Regulacion()));	
				cursobean.setField_strCodigo(curso.getField_strCodigo());	
				cursobean.setField_strNombre(curso.getField_strNombre());	
				cursobean.setField_intAnio(curso.getField_intAnio());	
				cursobean.setField_bitEstado(curso.getField_bitEstado());
				cursobean.setField_bitEstadoDescripcionReporte(CursoLogicAdditional.getEstadoDescripcion(curso));	
				cursobean.setField_strPeriododesde(curso.getField_strPeriododesde());	
				cursobean.setField_strPeriodohasta(curso.getField_strPeriodohasta());	
				cursobean.setField_intHoras(curso.getField_intHoras());	
				cursobean.setField_strElaboradopor(curso.getField_strElaboradopor());	
				cursobean.setField_strObjetivo(curso.getField_strObjetivo());	
				cursobean.setField_strObservaciones(curso.getField_strObservaciones());	
				
					
							
				cursobeans.add(cursobean);
			}
		}
		catch(Exception ex)
		{
			throw ex;
		}
		
		return cursobeans;
    }
}
